<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			var a=123;
			a=Boolean(a);
			console.log(a);
			console.log(typeof a);
			
			a=-123;
			a=Boolean(a);
			console.log(a);
			console.log(typeof a);
			
			a=0; /* false */
			a=Boolean(a);
			console.log(a);
			console.log(typeof a);
			
			a=Infinity;
			a=Boolean(a);
			console.log(a);
			console.log(typeof a);
			
			a=NaN;  /* false */
			a=Boolean(a);
			console.log(a);
			console.log(typeof a);
			
			a="hello";
			a=Boolean(a);
			console.log(a);
			console.log(typeof a);
			
			a="false";
			a=Boolean(a);
			console.log(a);
			console.log(typeof a);
			
			a=null;  /* false */
			a=Boolean(a);
			console.log(a);
			console.log(typeof a);
			
			a=undefined; /* false */
			a=Boolean(a);
			console.log(a);
			console.log(typeof a);
			
		</script>
	</head>
	<body>
	</body>
</html>